home *** CD-ROM | disk | FTP | other *** search
/ Armageddon - Interactive Preview / Interactive Preview: Armageddon.iso / mac / ALRTTHIS.dxr / 00095.ls < prev    next >
Encoding:
Text File  |  1998-05-14  |  1.1 KB  |  31 lines

  1. on closePromptAndReturnValues
  2.   global gHiddenPassword, gPlayerName
  3.   tell the stage
  4.     closeAlertWin()
  5.   end tell
  6.   if (the text of field "PromptMsg1" contains "password") or (the text of field "PromptMsg1" contains "Password") or (the text of field "PromptMsg1" contains "PASSWORD") then
  7.     set fld1 to gHiddenPassword
  8.   else
  9.     set fld1 to the text of field "PromptFld1"
  10.   end if
  11.   if (the text of field "PromptMsg2" contains "password") or (the text of field "PromptMsg2" contains "Password") or (the text of field "PromptMsg2" contains "PASSWORD") then
  12.     set fld2 to gHiddenPassword
  13.   else
  14.     set fld2 to the text of field "PromptFld2"
  15.   end if
  16.   if (the text of field "PromptMsg3" contains "password") or (the text of field "PromptMsg3" contains "Password") or (the text of field "PromptMsg3" contains "PASSWORD") then
  17.     set fld3 to gHiddenPassword
  18.   else
  19.     set fld3 to the text of field "PromptFld3"
  20.   end if
  21.   set fldList to [#prompt1: fld1, #prompt2: fld2, #prompt3: fld3]
  22.   set gPlayerName to fldList
  23.   set cmd to the text of field "PromptCmd"
  24.   if (cmd = EMPTY) or voidp(cmd) then
  25.   else
  26.     tell the stage
  27.       do(cmd)
  28.     end tell
  29.   end if
  30. end
  31.